<script>
export default {
  name: "Upload",
  data(){
    return{
      imageUrl:'',
    }
  }
  ,methods:{
    handleAvatarSuccess(){

    }
  }
}
</script>

<template>
  <el-upload
      class="avatar-uploader"
      action="http://localhost:9000/"
      :show-file-list="false"
      :on-success="handleAvatarSuccess"
?  >
    <img v-if="imageUrl" :src="imageUrl" class="avatar" />
    <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
  </el-upload>
</template>

<style scoped>

</style>